<?php
include_once ('class_master/db.class.php');
include_once ('class_master/check.class.php');
include_once ('class_master/salles.class.php');

$test = new check();
$return_var = new parcourir();

$res = $test->get_check_item("salle", "1");
$res1 = $test->get_check_item("salle", "19");
$res2 = $test->get_check_item("salle", "2");

echo $res;
echo $res1;
echo $res2.'<p>';


$toto = new db();

$req = $toto->select_all('salle');

$sortie = array();

$row = $req->fetchall();

foreach ($row as $salle)
{
	
	$salle = new salle();
	$salle->set_id_salle($row[0]);
	$salle->set_nom_salle($row[1]);
	$salle->set_status_salle($row[2]);
	array_push($sortie, $salle);
		
}

$tab = $sortie->fetch();

echo $tab;
